package main

import (
	"fmt"
	"github.com/micro/go-micro/v2"
	"monitor_serve/service/account/handler"
	"monitor_serve/service/account/proto/userpb"
)

func main() {
	service := micro.NewService(micro.Name("go.micro.service.user"))
	service.Init()
	err := userpb.RegisterUserServiceHandler(service.Server(), new(handler.User))
	if err != nil {
		fmt.Println(err)
	}
	err = service.Run()
	if err != nil {
		fmt.Println(err)
	}
}
